﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AgileSaude.Entities;
using AgileSaude.Business.Validation;
using AgileSaude.Data.Repository;
using AgileSaude.Data;
using FBS.Framework;
using AgileSaude.Business.Process;

namespace AgileSaude.Business
{
    public class ServicoFacade
    {

        public Resultado Incluir(ServicoEntities pObj)
        {
            return new ServicoProcess().Incluir(pObj);
        }

        public Resultado Alterar(ServicoEntities pObj)
        {
            return new ServicoProcess().Alterar(pObj);
        }

        public Resultado Deletar(ServicoEntities pObj)
        {
            return new ServicoProcess().Deletar(pObj);
        }

        public List<ServicoEntities> Listar(ServicoEntities pFiltro, ref Resultado resultado)
        {
            return new ServicoProcess().Listar(pFiltro, ref resultado);
        }

        public ServicoEntities GetServico(int pIdServico)
        {
            return new ServicoProcess().GetServico(pIdServico);
        }

        //public ServicoEntities GetServico(string pNome)
        //{
        //    return new ServicoProcess().GetServico(pNome);
        //}

        public int getIDConsulta(MedicoEntities oData)
        {
            return new ServicoProcess().getIDConsulta(oData);
        }
    }
}
